package com.evil.kingdom.service.captcha;

import com.evil.kingdom.pojo.entity.captcha.Captcha;
import com.evil.common.mongo.service.SingleService;

/**
 * 验证码
 *
 * @author liyang
 * @date 2024-05-22 16:51
 */
public interface CaptchaService extends SingleService<Captcha> {

    /**
     * 新增验证码
     *
     * @param name name
     * @return Captcha
     */
    Captcha add(String name);

    /**
     * 生成随机验证码
     *
     * @return Captcha
     */
    Captcha random();
}
